import type { RouteRecordRaw } from 'vue-router'

export const constantRoute: RouteRecordRaw[] = [
  {
    path: '/',
    redirect: '/login',
  },
  {
    path: '/login',
    name: 'login',
    component: () => import('@/views/login.vue'),
  },
  {
    path: '/home',
    name: 'home',
    component: () => import('@/views/home/index.vue'),
    children: [
      {
        path: '/home',
        redirect: '/home/count',
      },
      {
        path: '/home/count',
        name: 'homeCount',
        component: () => import('@/views/home/cpns/homeCount.vue'),
      },
      {
        path: '/home/message',
        name: 'homeMessage',
        component: () => import('@/views/home/cpns/homeMessage.vue'),
      },
    ],
  },
]
